/**
 * 
 */
package com.ztesoft.train.ssh.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ztesoft.train.ssh.dao.DaoInterface;
import com.ztesoft.train.ssh.model.Person;


/**
 * Implements methods that enable interaction between 
 * a Controller and a PersonDao.
 * @author ztesoft
 *
 */
@Service("personService")
public class PersonServiceImpl extends AbstractService implements PersonService {
	
	 @Autowired
	 private DaoInterface personDao;

	@Override
	protected DaoInterface getDao() {
		return this.personDao;
	}

	@Override
	public Person findbyEmplid(Long emplid) {
		return (Person)this.findbyId(emplid);
	}

	@Override
	public List<Person> findAllEmployees() {
		return (List<Person>)this.findAllEntity();
	}
	
}
